  /**
   * Generate time : 2016-10-28 10:09:52
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ci.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCIAccInfo 
 * table comment : 事故信息 
 */
public class ZMCIAccInfo extends DaoEPBase {

	private String fdKeyId = " ";		
	private String fdName = " ";		/* 矿名*/
	private String fdVirtualDate = " ";		/* 日期*/
	private String fdTime = " ";		/* 时间*/
	private String fdAreaname = " ";		/* 地点*/
	private String fdEmployeename = " ";		/* 人员*/
	private String fdDepartmentrolename = " ";		/* 部门*/
	private String fdType = " ";		/* 类型*/
	private String fdDegree = " ";		/* 受伤程度*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAreaname");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("地点");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEmployeename");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("人员");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentrolename");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdType");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDegree");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("受伤程度");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCIAccInfo() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId 
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdName - 矿名
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 矿名
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdVirtualDate - 日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	
	/**
	 * get the fdTime - 时间
	 * @return the fdTime
	 */
	public String getFdTime() {
		return this.fdTime;
	}
	
	/**
	 * set the fdTime - 时间
	 */
	public void setFdTime(String fdTime) {
		this.fdTime = fdTime;
	}
	
	/**
	 * get the fdAreaname - 地点
	 * @return the fdAreaname
	 */
	public String getFdAreaname() {
		return this.fdAreaname;
	}
	
	/**
	 * set the fdAreaname - 地点
	 */
	public void setFdAreaname(String fdAreaname) {
		this.fdAreaname = fdAreaname;
	}
	
	/**
	 * get the fdEmployeename - 人员
	 * @return the fdEmployeename
	 */
	public String getFdEmployeename() {
		return this.fdEmployeename;
	}
	
	/**
	 * set the fdEmployeename - 人员
	 */
	public void setFdEmployeename(String fdEmployeename) {
		this.fdEmployeename = fdEmployeename;
	}
	
	/**
	 * get the fdDepartmentrolename - 部门
	 * @return the fdDepartmentrolename
	 */
	public String getFdDepartmentrolename() {
		return this.fdDepartmentrolename;
	}
	
	/**
	 * set the fdDepartmentrolename - 部门
	 */
	public void setFdDepartmentrolename(String fdDepartmentrolename) {
		this.fdDepartmentrolename = fdDepartmentrolename;
	}
	
	/**
	 * get the fdType - 类型
	 * @return the fdType
	 */
	public String getFdType() {
		return this.fdType;
	}
	
	/**
	 * set the fdType - 类型
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}
	
	/**
	 * get the fdDegree - 受伤程度
	 * @return the fdDegree
	 */
	public String getFdDegree() {
		return this.fdDegree;
	}
	
	/**
	 * set the fdDegree - 受伤程度
	 */
	public void setFdDegree(String fdDegree) {
		this.fdDegree = fdDegree;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTime")), fdTime));
		setFdAreaname(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAreaname")), fdAreaname));
		setFdEmployeename(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEmployeename")), fdEmployeename));
		setFdDepartmentrolename(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentrolename")), fdDepartmentrolename));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
		setFdDegree(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDegree")), fdDegree));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdTime",StringUtils.toString(fdTime, eiMetadata.getMeta("fdTime")));	
			map.put("fdAreaname",StringUtils.toString(fdAreaname, eiMetadata.getMeta("fdAreaname")));	
			map.put("fdEmployeename",StringUtils.toString(fdEmployeename, eiMetadata.getMeta("fdEmployeename")));	
			map.put("fdDepartmentrolename",StringUtils.toString(fdDepartmentrolename, eiMetadata.getMeta("fdDepartmentrolename")));	
			map.put("fdType",StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));	
			map.put("fdDegree",StringUtils.toString(fdDegree, eiMetadata.getMeta("fdDegree")));	
			
		return map;
	
	}
}